/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.product.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 产品管理Entity
 * @author 李云涛
 * @version 2017-09-03
 */
public class WxProduct extends DataEntity<WxProduct> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 产品名
	private String intro;		// 简介
	private String desc2;		// 产品描述
	private String thumbId;		// 缩略图
	private String industry;		// 行业
	private String catagory;		// 分类
	private String hot;		// 是否热门
	private Integer order2;		// 排序
	
	public WxProduct() {
		super();
	}

	public WxProduct(String id){
		super(id);
	}

	@Length(min=0, max=64, message="产品名长度必须介于 0 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="简介长度必须介于 0 和 255 之间")
	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}
	
	public String getDesc2() {
		return desc2;
	}

	public void setDesc2(String desc2) {
		this.desc2 = desc2;
	}
	
	@Length(min=0, max=64, message="缩略图长度必须介于 0 和 64 之间")
	public String getThumbId() {
		return thumbId;
	}

	public void setThumbId(String thumbId) {
		this.thumbId = thumbId;
	}
	
	@Length(min=0, max=64, message="行业长度必须介于 0 和 64 之间")
	public String getIndustry() {
		return industry;
	}

	public void setIndustry(String industry) {
		this.industry = industry;
	}
	
	@Length(min=0, max=64, message="分类长度必须介于 0 和 64 之间")
	public String getCatagory() {
		return catagory;
	}

	public void setCatagory(String catagory) {
		this.catagory = catagory;
	}
	
	@Length(min=0, max=2, message="是否热门长度必须介于 0 和 2 之间")
	public String getHot() {
		return hot;
	}

	public void setHot(String hot) {
		this.hot = hot;
	}
	
	public Integer getOrder2() {
		return order2;
	}

	public void setOrder2(Integer order2) {
		this.order2 = order2;
	}
	
}